from functools import reduce
# def la (x,y):
#     return x+y
#
#
# print (la (5, 6))
#
# fun = lambda x,y :x+y
#
# print (fun (5,6))
def is_odd(n):
    if n % 2 == 1:
        return n
#
# tmplist = filter(is_odd, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
# newlist = list(tmplist)
# print(newlist)

# lis = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11]

# ite = filter(lambda n:n%2==1,lis) #迭代器

# for i in ite:
#     print(i)
# print (next (ite))
# print (next (ite))
# print (next (ite))
#
#
# print(list(ite))



lis = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11]
#列表中的每一项都加5
# newlis = []
# for i in lis:
#     i+=5
#     newlis.append(i)
#
# print (newlis)
ite = map(lambda n:n+5,lis)
print (next (ite))
print (next (ite))
print (next (ite))
print (next (ite))

# sum_lis = reduce(lambda x,y:x+y,lis)
# print(sum_lis)
# print (help ('modules'))